<!--
  @author heguanghua
  @since 2020/04/16 10:11
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head th:include="common/common::jscss"/>
<body>

<div class="layui-fluid"
     th:with="hasDetail=${#authPermit.checkPermit('/sys/detail.action')},
     hasList=${#authPermit.checkPermit('/sys/list.action')},
     hasModuleList=${#authPermit.checkPermit('/module/tree.action')},
     hasAddEdit=${#authPermit.checkPermit('/sys/modify/addEdit.action')},
     hasModifyStatus=${#authPermit.checkPermit('/sys/modify/modifyStatus.action')},
     hasModifySort=${#authPermit.checkPermit('/sys/modify/modifySort.action')}">

    <blockquote class="layui-crumb">
        <a th:lay-href="|${SYS_MCC}/sys/list.action|">系统管理</a>
    </blockquote>

    <div class="layui-card">

        <form method="POST" class="layui-form" action="/sys/list.action">
            <div th:replace="sys/_query::query"></div>
        </form>

        <div class="layui-card-body">

            <div th:replace="sys/_table::table"></div>

            <script type="text/html" id="zmn-table-tool">
                <div class="layui-btn-container">
<!--                    <div class="layui-btn-group">-->
<!--                        <a th:lay-href="|${SYS_MCC}/sys/detail.action|" class="layui-btn layui-btn-sm layui-btn-primary" lay-text="系统信息" text="新增系统" th:if="${hasAddEdit}">+新增系统</a>-->
<!--                    </div>-->
                </div>
            </script>

        </div>

    </div>

</div>
</body>
</html>

<script type="text/javascript" th:inline="javascript">

    var json = {
        totalCount: [[${vo.totalCount}]],
        pageSize: [[${vo.pageSize}]],
        pageIndex: [[${vo.pageIndex}]]
    };

    layui.extend({
        sys_list: "sys/zmn.sys.list"
    }).use(['index', 'sys_list']);

</script>
